﻿<UserControl x:Class="MyPrism.Search.Views.SearchControlView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Commands="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation"         
    mc:Ignorable="d"
    d:DesignHeight="40" d:DesignWidth="228">

    <Grid x:Name="LayoutRoot" Background="White" Height="25" Width="215">
        <TextBox x:Name="txtSearch" Text="{Binding Path=Keyword,Mode=TwoWay}"   Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />
        <Button Content="Search" Commands:Click.Command="{Binding SearchComand}" Commands:Click.CommandParameter="{Binding Path=Keyword}" Height="23" HorizontalAlignment="Left" Margin="137,0,0,0" x:Name="btnSearch" VerticalAlignment="Top" Width="75" />
    </Grid>
</UserControl>